import request from '@/utils/request'

export function getList() {
  return request({
    url: '/api/express_company/company',
    method: 'get'
  })
}
export function add(data) {
  console.log(data)
  return request({
    url: '/api/express_company/company_add',
    method: 'post',
    data: {
      name: data.name,
      express: data.express
    }
  })
}
export function edit(data) {
  return request({
    url: '/api/express_company/company_edit',
    method: 'post',
    data: {
      id: data.id,
      name: data.name,
      express: data.express
    }
  })
}
export function handDelete(data) {
  return request({
    url: '/api/express_company/company_del',
    method: 'post',
    data: {
      id: data.id
    }
  })
}
